package com.micro.service;

import com.micro.model.Subject;

import java.util.List;


public interface SubjectService {

	/**
	 * 添加主题
	 * @param subject
	 * @return
	 */
	public int insertSubject(Subject subject);

	/**
	 * 添加主题历史
	 * @param subject
	 * @return
	 */
	public int insertSubjectHis(Subject subject);

	/**
	 * 修改主题
	 * @param subject
	 * @return
	 */
	public int editSubject(Subject subject);

	/**
	 * 查询所有主题数据
	 * @return
	 */
	public List<Subject> querySubjectList(Subject conditionBean);

	/**
	 * 查询无目录文档数据
	 * @return
	 */
	public List<Subject> querySubjectListByCond(Subject conditionBean);

	/**
	 * 根据条件查询主题数据
	 * @param subject
	 * @return
	 */
	public List<Subject> querySubjectListByCondition(Subject subject);

	/**
	 * 根据条件查询主题数据
	 * @param subject
	 * @return
	 */
	public Subject querySubjectListByID(Subject subject);

	/**
	 * 根据条件查询主题数据是否存在
	 * @param subjectTitle
	 * @return
	 */
	public int querySubjectIsExistByTitle(String subjectTitle);
}
